//获得屏幕大小
var htmlwidth = document.documentElement.clientWidth || document.body.clientWidth;  //浏览器兼容
//获得html DOM元素
var htmlDom = document.getElementsByTagName('html')[0];
//给DOM元素设置样式
htmlDom.style.fontSize = htmlwidth / 10.8 + 'px';

$.constant = {

    webRoot: function () {
        // return "http://127.0.0.1:8080/";
        return "http://47.91.213.87:8080/";
    }
};

jQuery.prototype.serializeObject = function () {
    var obj = new Object();
    $.each(this.serializeArray(), function (index, param) {
        if (!(param.name in obj)) {
            obj[param.name] = param.value;
        }
    });
    return obj;
};


